﻿using System;
using System.Web.UI.WebControls;

namespace RepairTracker
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            switch (Request.FilePath)
            {
                case "/workflow.aspx":
                    menuTop.Items[0].Selected = true;
                    break;
                case"/maintain.aspx":
                    menuTop.Items[1].Selected = true;
                    break;
                case"/report.aspx":
                    menuTop.Items[2].Selected = true;
                    break;

                default:
                    break;
            }
        }

        protected void menuTop_MenuItemClick(object sender, MenuEventArgs e)
        {
            switch (e.Item.Text)
            {
                case "业务流程":
                    Response.Redirect("~/workflow.aspx");
                    break;
                case "数据维护":
                    Response.Redirect("~/maintain.aspx");
                    break;
                case "统计报表":
                    Response.Redirect("~/report.aspx");
                    break;
                default:
                    break;
            }


            
        }
    }
}